package org.jeemp.db.controller;

import org.jeemp.db.entity.Student;
import org.jeemp.db.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author JackRen
 * @date 2021/3/3
 *
 **/
@RestController
public class StudentController {
    @Autowired
    StudentService stuService;

    @GetMapping("/getallstus")
    public List<Student> getAllStudents() {
        return stuService.getAllStudents();
    }
}
